﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using FSY.API.Utilities;
using FSY.API.Files;
using FSY.Components.Entities;
using FSY.Core.ModuleBase;
namespace FSY.Core.UI
{
    public class BoxContent:UserControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            if (this.Parent is Box)
            {
                Box box = (Box)this.Parent;
                try
                {
                    FsyModuleBase module = (FsyModuleBase)box.BoxContent;
                    this.Controls.Add(module);
                }
                catch
                {
                }
            }            
        }
    }
}
